package com.dq.controller.api.merchant.in.query;

import com.dq.controller.in.base.BaseQuery;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author liuhui
 * @date 2019/11/22 0022 09:44:53
 */
@Data
@ApiModel("消息查询")
public class MsgQuery  extends BaseQuery {

    @ApiModelProperty("消息类型,不传查询全部类型")
    public MessageType messageType;

    @ApiModelProperty("查询时间")
    public String queryTime;

    public enum MessageType{
        instruction("指令"),
        notice("通知"),
        subscribe("预约"),
        approval("审批");
        public String name;
        MessageType(String name){
            this.name = name;
        }
    }
}
